<template>
	<view class="container">
		<view class="status-bar"></view>
		<view :style='btnArea'>
			<view class="btn_left">
				<button id="btn_register" type="default" size="default" class="btn" @click="toRegister">注册</button>
			</view>
			<view class="btn_right">
				<button id="btn_login"  type="default" size="default" class="btn" @click="toLogin">登录</button>
			</view>
		</view>	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				btnArea: {
					position: 'relative',
					justifyContent:'center',
					display: 'flex',
					top: '0 px'
				}
			}
		},
		methods: {
			toLogin() {
				this.$Router.push({name: "login"});
			},
			toRegister() {
				
			}

		},
		created() {
			this.btnArea.top = this.$store.state.systemInfo.screenHeight * 0.9 + 'px'
		}
	}
</script>

<style >
	.btn {
		background: #41ba55 !important; 
		width: 200rpx;
		height: 80rpx;
		color: #E1F3D8 !important;
		margin: 5rpx;
	}
	.btn_area {
		position: relative;
		top: (this.$store.state.systemInfo.windowHeight + 100) px;
		justify-content:center;
		display: flex;
		align-items:center;
		
	}
	.btn_left {
		margin-right: 125rpx;
		align-items: center;
	}
	.btn-right {
		margin-left: 100rpx;
		align-items: center;
	}
</style>
